package proxy;

import org.apache.log4j.Logger;
import service.Buyer;

public class IntermediaryImpl implements Buyer {
    private static final Logger log=Logger.getLogger(IntermediaryImpl.class);
    private Buyer target;
    public IntermediaryImpl(Buyer target){
        this.target=target;
    }
    @Override
    public String havealook() {
        before();
        String feedback=target.havealook();
        after();
        return "看房记录：买家反馈“"+feedback+"“";
    }

    public void before(){
        log.debug("前期准备。");
        log.debug("查找房源。");
        log.debug("和卖家沟通时间。");
    }
    public void after(){
        log.debug("后期跟踪");
        log.debug("和买家沟通意见。");
    }
}
